package cn.zyq.ykb.system.common;

import cn.zyq.ykb.system.annotation.Excel;
import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import java.io.Serializable;
import java.time.LocalDateTime;

public class BaseAuditBean extends BaseBean implements Serializable {
    /**
     * ** 审核状态，0默认，1审核中，2审核通过，3拒绝
     *
     * @See AuditTypeEnum
     */
    @Column(name = "`audit`")
    @ApiModelProperty("审核状态，0默认，1审核中，2审核通过，3拒绝，4审核驳回）")
    @Excel(name = "订单状态",readConverterExp ="0=默认,1=审核中,2=审核通过,3=审核拒绝,4=审核驳回," )
    private Integer audit;
    /**
     * 审核意见
     */
    @Column(name = "`auditReason`")
    @ApiModelProperty("审核意见")
    private String auditReason;
    /**
     * 审核人id
     */
    @Column(name = "`auditorID`")
    @ApiModelProperty(hidden = true)
    private Integer auditorID;
    /**
     * 审核时间
     */
    @Column(name = "`auditTime`")
    @ApiModelProperty("审核时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime auditTime;

    public Integer getAudit() {
        return audit;
    }

    public void setAudit(Integer audit) {
        this.audit = audit;
    }

    public String getAuditReason() {
        return auditReason;
    }

    public void setAuditReason(String auditReason) {
        this.auditReason = auditReason;
    }

    public Integer getAuditorID() {
        return auditorID;
    }

    public void setAuditorID(Integer auditorID) {
        this.auditorID = auditorID;
    }

    public LocalDateTime getAuditTime() {
        return auditTime;
    }

    public void setAuditTime(LocalDateTime auditTime) {
        this.auditTime = auditTime;
    }

}
